package download;

import bean.ThreadAllocationBean;

/**
 * @Description 下载监听接口
 * @Author 冷彭磊
 * @Data 2025/2/26 10:05
 */
public interface DownloadListener {
    //下载开始
    void onStart(String filePath,String saveFilePath,String MD5);
    //下载完成
    void onComplete();
    //下载进度
    void onProgress(String progressFile, long download,long total);
    //下载失败
    void onError(String message);
    //文件已经存在
    void onFileExits(String fileName);
    //目标文件不支持断点续传
    void onBreakpointContinuation(String filePath ,boolean support);
    //MD5校验成功
    void onMD5VerifySuccessful();
    //线程分配
    void onThreadAllocation(ThreadAllocationBean threadAllocationBean);

}




